#include<stdio.h>
int main(void)
{
  int n,len,i;
  int a[20];
  scanf("%d",&n);
  while(n/2){a[len++]=n%2;n=n/2;}
  a[len++]=n%2;
  for(i=len-1;i>=0;i--)
  {printf("%d",a[i]);}
}

